package zerous.dodgestones.core;
import com.badlogic.gdx.utils.*;
import com.badlogic.gdx.graphics.g2d.*;
import zerous.dodgestones.*;

public class Star implements Pool.Poolable
{
	public float x, y;
	
	float speed;
	
	Sprite body;
	
	public void init(int x, int y, float speed) {
		this.x = x;
		this.y = y;
		this.speed = speed;
		
		body = new Sprite(Traveler.STAR);
	}
	
	public void draw(Batch batch) {
		x -= speed;
		body.setPosition(x, y);
		
		body.draw(batch);
	}
	
	@Override
	public void reset() {
		x = 0;
		y = 0;
		speed = 0;
	}
}
